package com.itheima.reggie.common;
//工具类用于元数据对象处理器
public class BaseContext {
    private static final ThreadLocal<Long> threadLocal=new ThreadLocal<>();

    public static void setCurrentId(Long id){
        threadLocal.set(id);
    }
    public static Long getCurrentId(){
        return threadLocal.get();
    }
}
